//
//  YZAttDocCell.m
//  kuaiyi
//
//  Created by Liu on 16/5/4.
//
//

#import "YZAttDocCell.h"
#import "YZAttDoc.h"

@interface YZAttDocCell ()
/**
 *  名字
 */
@property (weak, nonatomic) IBOutlet UILabel *DocName;

/**
 *  医生类型
 */
@property (weak, nonatomic) IBOutlet UILabel *DocType;

/**
 *  医院
 */
@property (weak, nonatomic) IBOutlet UILabel *DocHospital;


/**
 *  预约量
 */
@property (weak, nonatomic) IBOutlet UILabel *DocSubscribeNum;

/**
 *  鲜花数量
 */
@property (weak, nonatomic) IBOutlet UILabel *DocFlowerNum;

/**
 *  锦旗数量
 */
@property (weak, nonatomic) IBOutlet UILabel *DocPennantNum;

//咨询按钮的点击
- (IBAction)DocConsultBtnDidClock;


@end


@implementation YZAttDocCell

-(void)setAttDocArr:(YZAttDoc *)attDocArr {
    _attDocArr = attDocArr;
    self.DocName.text = self.attDocArr.DocName;
    self.DocFlowerNum.text = self.attDocArr.DocFlowerNum;
    self.DocHospital.text = self.attDocArr.DocHospital;
    self.DocPennantNum.text = self.attDocArr.DocPennantNum;
    self.DocSubscribeNum.text = self.attDocArr.DocSubscribeNum;
    self.DocType.text = self.attDocArr.DocType;
}



+(instancetype)attDocCell:(UITableView *)tableView {
       static NSString *ID = @"attDocCell";
    YZAttDocCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (cell == nil) {
        cell = [[[NSBundle mainBundle] loadNibNamed:@"YZAttDocCell" owner:nil options:nil] lastObject];
    }
    return cell;
}


/**
 *  frame
 */
-(void)layoutSubviews {
    [super layoutSubviews];
    
}

/**
 *  咨询按钮的点击
 */
- (IBAction)DocConsultBtnDidClock {
    self.DocConsultBlock();
}
@end
